package dshop.model.member;

import appbase.jfinal.ext.BaseModel;

public class MemberPermission extends BaseModel<MemberPermission>{
	
	private static final long serialVersionUID = -6967680902549117464L;
	
	public static final MemberPermission dao = new MemberPermission();

	

	public static void setPermissionOnCheckFail(int accountId) 
	{
		new MemberPermission().set("publish_job", "FALSE")
		  					  .set("publish_procurement", "FALSE")
		  					  .set("create_commerce", "FALSE")
		  					  .set("create_activity", "FALSE")
		  					  .set("account_id", accountId)
		  					  .update();
	}

}
